package PL.practica5;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

import PL.practica5.AnalizadorFlexLexer;
import PL.practica5.AnalizadorFlexParser;

public class Procesador {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws RecognitionException 
	 */
	public static void main(String[] args) throws IOException, RecognitionException {
		CharStream cs = new ANTLRFileStream(args[0]);
		AnalizadorFlexLexer lex = new AnalizadorFlexLexer(cs);
		CommonTokenStream tokens = new CommonTokenStream(lex);
		AnalizadorFlexParser parser = new AnalizadorFlexParser(tokens);
		parser.flex();
		System.out.println ("done!!!!!!!");
	}

}
